package TG_836;

public class Solution {
	public boolean isRectangleOverlap(int[] rec1, int[] rec2) {
		boolean xFlag = !(rec1[0] >= rec2[2] || rec1[2] <= rec2[0]);
		boolean yFlag = !(rec1[1] >= rec2[3] || rec1[3] <= rec2[1]);
		return xFlag&&yFlag;
	}
}
